package com.atguigu.gulimall.product.vo;

import lombok.*;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @Author LiDeJie
 * @Create 2024/1/2 22:14
 * @Version 1.0
 */
@NoArgsConstructor
@AllArgsConstructor
@ToString
@EqualsAndHashCode
@Data
@Accessors(chain = true)
public class Catalog2Vo {
    
    /**
     * 一级分类Id
     */
    private String catalog1Id;
    
    /**
     * 二级分类Id
     */
    private String id;
    
    /**
     * 二级分类名称
     */
    private String name;
    
    List<Catalog3Vo> catalog3List;
    
    @NoArgsConstructor
    @AllArgsConstructor
    @ToString
    @EqualsAndHashCode
    @Data
    @Accessors(chain = true)
    public static class Catalog3Vo {
        
        /**
         * 二级分类Id
         */
        private String catalog2Id;
        
        /**
         * 三级分类Id
         */
        private String id;
        
        /**
         * 三级分类名称
         */
        private String name;
        
    }
    
}
